/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo909B;

/**
 *
 * @author Administrator
 */
public class Student {
  private  String no;
  private  String name;
  private  int score;
  public void setNo(String no){
      this.no=no;
  }
  public String getNo(){
      return no;
  }
  public void setName(String n){
      name=n;
  }
  public String getName(){
      return name;
  }
  public int getScore(){
      return score;
  }
  public void setScore(int score){
//      if(score>=0){
//          this.score=score;
//      }else{
//         this.score=-score;}
// 
      this.score=Math.abs(score);
  }
    public void getInfo(){
        System.out.println("name="+
                name+" no="+no
                +"score="+score);
    }
}
